package com.pg.auth.model.dto.sysorg;

import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;
import com.pg.auth.model.entity.SysOrg;
import com.pg.auth.model.dto.sysorg.SysOrgVO;
import java.util.List;


/***
 * 对象转换
 * @author : huhuaping
 * @Date : 2024-06-06 19:55:33
 */
@Mapper(componentModel = "spring", unmappedSourcePolicy = ReportingPolicy.IGNORE, unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface SysOrgConvertor {

    SysOrgConvertor INSTANCE = Mappers.getMapper(SysOrgConvertor.class);

    SysOrg dtoToDB(SysOrgDTO sysOrgDTO);

    SysOrgVO dbToVO(SysOrg sysOrg);

    List<SysOrgVO> listDbToVO(List<SysOrg> list);
}
